﻿using UnityEngine;

public class PieController : MonoBehaviour 
{	
	public int rotationSpeed = 200;
	
	public enum DIRECTION
	{
		CW = 1,
		CCW = -1,
	}
	
	public void RotatePie(DIRECTION direction)
	{
		transform.Rotate(0,0, (int)direction * rotationSpeed * Time.deltaTime);
	}
}

